﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Ajax.Utilities;
using Zj.Blog.Common.DTO.Pipeline;

namespace Zj.Blog.Mvc.Controllers
{
    public class PipelineController : Controller
    {
        // GET: Pipeline
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult SysModules()
        {
            var app = HttpContext.ApplicationInstance;
            var modules=app.Modules;

            List<DTO_SysModule> moduleList=new List<DTO_SysModule>();
            foreach (var module in modules)
            {
                moduleList.Add(new DTO_SysModule()
                {
                     Name = module.GetType().Name,
                });
            }
            return View(moduleList);
        }
    }
}